package Leo.fileIO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.OutputStream;

public interface FileDownload {

    /**
     *下载文件
     */
    public void downFile(String path,HttpServletResponse response) throws IOException;

    /**
     * 让文件以指定形式显示
     */
    public void transFile(String path,HttpServletResponse response) throws IOException;

    /**
     * 文件转为输出流
     * @param path
     * @param outputStream
     * @return
     */
    public OutputStream fileToOutputStream(String path, OutputStream outputStream) throws IOException;
}
